Skip to content

feat(composer): v3.4 — inline direct-manipulation on hero (closes #24)#28

Merged
heznpc merged 1 commit into
mainfrom
feat/v3.4-inline-edit
Apr 30, 2026
Merged

feat(composer): v3.4 — inline direct-manipulation on hero (closes #24)#28
heznpc merged 1 commit into
mainfrom
feat/v3.4-inline-edit

Conversation

@heznpc
Copy link
Copy Markdown
Member

@heznpc heznpc commented Apr 30, 2026

Hero blocks now render inline SVG. Click on bg → popover picker. Click on name/subtitle → focuses the slot input with a brief flash. Other card types remain as for now. See #24.

Hero card blocks in the Compose canvas now render as inline SVG so
the data-cas-target hooks emitted by hero.js (#27) can attach click
handlers. Two interactions land:

- bg click → popover with the 4 background options (gradient / wave /
  grid / particles). Selection updates the slot, persists, re-renders.
  Outside click dismisses; viewport clamping keeps the popover on
  screen near edges.
- name / subtitle click → the corresponding input in the right-pane
  slot inspector receives focus + select-all + a brief accent flash.
  Click-to-jump beats trying to make SVG <text> contenteditable
  reliably across browsers; real text-in-canvas edit is v3.4.x.

Out of MVP (deferred): inline edit on stats / pin / languages / snake,
color picker for theme, keyboard a11y, drag-handle reorder. Other
card types still render as <img>.
@heznpc heznpc merged commit ed6a56a into main Apr 30, 2026
@heznpc heznpc deleted the feat/v3.4-inline-edit branch April 30, 2026 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant